home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 22 / Cream of the Crop 22.iso / comm / ntmler8b.zip / CGI.H < prev    next >
C/C++ Source or Header  |  1996-09-12  |  585b  |  32 lines

  1. #include <windows.h>
  2.  
  3. const int MAX_CONTENT_LENGTH = 2048;
  4.  
  5. class CCGI
  6. {
  7. private:
  8.     char *m_method,
  9.          *m_name,
  10.          *m_value;
  11.     char m_content[MAX_CONTENT_LENGTH];
  12.  
  13. protected:
  14.     int is_hex(char hex);
  15.     void url_decode();
  16.  
  17.  
  18.  
  19. public:
  20.     CCGI();
  21.     BOOL Initialize(const char*);
  22.     char* FindData(char* form_variable, BOOL REQUIRED);
  23.     char* GetContent() {return m_content;};
  24.     void  SetContent(char* );
  25.     BOOL ParamExist(char[]);
  26.  
  27. };
  28. void PrintHeader(const char* title);
  29. void PrintTrailer(const char* trailer);
  30. void err(char[]);
  31. char* stristr(char*, const char*);
  32.